package com.sugar.psych.assessment.module.business.controller.admin.user.vo;

import lombok.*;
import java.util.*;
import io.swagger.v3.oas.annotations.media.Schema;
import com.sugar.psych.assessment.framework.common.pojo.PageParam;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

import static com.sugar.psych.assessment.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 用户信息分页 Request VO")
@Data
public class UserPageReqVO extends PageParam {

    @Schema(description = "用户名（用户ID号，唯一标识）", example = "芋艿")
    private String username;

    @Schema(description = "用户昵称", example = "芋艿")
    private String nickname;

    @Schema(description = "头像地址")
    private String avatar;

    @Schema(description = "手机号")
    private String mobile;

    @Schema(description = "微信OpenID", example = "10675")
    private String wechatOpenId;

    @Schema(description = "总积分")
    private Integer totalPoints;

    @Schema(description = "账户状态（1正常 0封禁）", example = "2")
    private Boolean status;

    @Schema(description = "最近一次登录时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] lastLoginTime;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

}